package com.baige.service.statistic.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商家统计
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("merchant_statistic")
public class MerchantStatistic extends Model<MerchantStatistic> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 可租商品总数
     */
    @TableField("rent_goods_count")
    private Integer rentGoodsCount;
    /**
     * 可卖商品数
     */
    @TableField("buy_goods_count")
    private Integer buyGoodsCount;
    /**
     * 租赁订单数
     */
    @TableField("rent_order_count")
    private Integer rentOrderCount;
    /**
     * 购买订单数
     */
    @TableField("buy_order_count")
    private Integer buyOrderCount;
    /**
     * 总收益金额
     */
    @TableField("total_earnings_amount")
    private BigDecimal totalEarningsAmount;
    /**
     * 未提现收益金额
     */
    @TableField("total_usable_amount")
    private BigDecimal totalUsableAmount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
